const Router = require('koa-router');
const { verifyToken } = require('../controller/login.controller')
const {
  getOrderList,
  editOrderStatus
} = require('../controller/order.controller');

const orderRouter = new Router({ prefix: '/maintainers/order' });

// 获取订单列表（附带分页）
orderRouter.get('/', verifyToken, getOrderList);

// 修改订单状态
orderRouter.post('/status', editOrderStatus);

module.exports = orderRouter;